package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.domain.SchoolLinkman;
import cn.wolfcode.crm.domain.StudentTracking;
import cn.wolfcode.crm.query.StudentTrackingQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StudentTrackingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StudentTracking record);

    StudentTracking selectByPrimaryKey(Long id);

    List<StudentTracking> selectAll();

    int updateByPrimaryKey(StudentTracking record);

    void changState(Long id);

    int query4Count(StudentTrackingQueryObject qo);

    List<StudentTracking> query4List(StudentTrackingQueryObject qo);


    void trackingSave(@Param("schoolId") Long schoolId, @Param("client") Client client, @Param("date") Date date, @Param("username") String username, @Param("linkman") SchoolLinkman linkman);
}